package cn.stylefeng.guns.generator.executor;


import cn.stylefeng.guns.generator.executor.config.GunsGeneratorConfig;

/**
 * 代码生成器,可以生成实体,dao,service,controller,html,js
 *
 * @author stylefeng
 * @Date 2017/5/21 12:38
 */
public class GunsCodeGenerator {

    public static void main(String[] args) {

        String projectPath = "D:\\dev\\my\\code\\jwan";
        String bizEnName = "bizPoi";
        String moduleName = "poi";
        String proPackage = "cn.stylefeng.guns";
        String tableName = "biz_poi";
        String bizCnName = "POI";
        GunsGeneratorConfig gunsGeneratorConfig = new GunsGeneratorConfig();
        gunsGeneratorConfig.init(projectPath,bizEnName,bizCnName,moduleName,proPackage,tableName,"顶级");
        gunsGeneratorConfig.doMpGeneration();

        /**
         * guns的生成器:
         *      guns的代码生成器可以生成controller,html页面,页面对应的js
         */
        gunsGeneratorConfig.doGunsGeneration(gunsGeneratorConfig);
    }

}
